package com.ruoyi.xuexiao.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.xuexiao.domain.entity.ZdJjLx;
import com.ruoyi.xuexiao.domain.vo.ZdJjLxReturnVo;
import com.ruoyi.xuexiao.mapper.ZdJjLxMapper;
import com.ruoyi.xuexiao.service.ZdJjLxService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@AllArgsConstructor
public class ZdJjLxImpl extends ServiceImpl<ZdJjLxMapper, ZdJjLx>
        implements ZdJjLxService {

    private final ZdJjLxMapper zdJjLxMapper;

    /**
     * 获取全部经济类型字典
     *
     * @author 郭梓强
     * @since 2024年5月27日8:31:21
     */
    @Override
    public List<ZdJjLxReturnVo> selJgZdJjLx(ZdJjLx jgZdJjLx) {
        // 设置返回数据对象的属性值
        List<ZdJjLx> zdJjLxes = zdJjLxMapper.selectList(null);
        return BeanUtil.copyToList(zdJjLxes, ZdJjLxReturnVo.class);
    }
}
